package ordnode;

import java.io.Serializable;

import core.Neuron;
import core.IOrder;

public class COneDirOrder extends IOrder implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1013142679878659630L;
	private boolean activated;
	
	private int activatedTimes;
	
	public COneDirOrder(Neuron start, Neuron end) {
		super(start, end);
	}
	
	public int getTotalCount() {
		return activatedTimes;
	}

	@Override
	public void activate() {
		activated = true;
		++activatedTimes;
	}

	@Override
	public double getValue() {
		return activated ? 1 : 0;
	}

	@Override
	public void feedback(double coeff) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void acquire(double expect) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void reset() {
		activated = false;
	}

	@Override
	public void calculateFeedback() {
		// TODO Auto-generated method stub
		
	}
}
